/**
 * @author Javier
 */
var RF_EVENTS = {
	/**
	 * Manejador de eventos
	 * 
	 * @author GreaseMonkey
	 * @param {Object} source Objeto del DOM; PE: getElementById('xul-popup-id')
	 * @param {String} event Evento; PE: "popupshowing"
	 * @param {Function} listener Función que manejará el evento
	 * @param {Object} opt_capture ¿?
	 */
	listen: function(source, event, listener, opt_capture) {
		Components.lookupMethod(source, "addEventListener").apply(
			source, [event, listener, opt_capture]
		);
	},
	unlisten: function(source, event, listener, opt_capture) {
		Components.lookupMethod(source, "removeEventListener").apply(
			source, [event, listener, opt_capture]
		);
	},
};
